package com.lq.ecoldchain.common

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R
import com.lq.ecoldchain.entity.CarType

/*
*2018/12/28 0028  14:18
*function by lq
*/
class CarTypeRecyclerAdapter(list:List<CarType>):BaseQuickAdapter<CarType,BaseViewHolder>(R.layout.layout_car_type_item,list){
    override fun convert(helper: BaseViewHolder?, item: CarType?) {
        helper?.setText(R.id.carTypeNameTv,item?.id.toString())
        helper?.addOnClickListener(R.id.carTypeNameTv)
    }

}